package com.jacken.springcloudseatabank01.feign.fallback;

import com.jacken.springcloudseatabank01.common.Constant;
import com.jacken.springcloudseatabank01.entity.basic.Result;
import com.jacken.springcloudseatabank01.feign.BankFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author wangqiang
 * @version 1.0
 * @date 2020/10/8 9:52
 */
@Component
public class BankFeignClientFallback  implements BankFeignClient {


    @Override
    public Result transfer(String accountNo, Double amount) {
        return Result.error(Constant.TRANSFER_FAIL_MESSAGE);
    }
}
